package com.xinfan.mhl.service;

import com.mysql.cj.util.StringUtils;
import com.xinfan.mhl.dao.EmployeeDao;
import com.xinfan.mhl.domain.Employee;
import sun.security.provider.MD5;

/**
 * @Author xin
 * @Date 2022/6/22 23:31
 * @Version 1.0
 */
public class EmployeeService {
    private final EmployeeDao employeeDao = new EmployeeDao();

    public Employee getEmployeeByEmpIdAndPwd(String user,String pwd) {

        return employeeDao.selectOne("select * from employee where empId = ? and pwd = md5(?)", Employee.class, user, pwd);
    }

}
